// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import 'babel-polyfill';
// import fastclick from 'fastclick';
import Vue from 'vue';
// import 'common/weui/weui.less';

import '@/common/scss/index.scss';
import $alert from '@/base/alert/index';
import $toast from '@/base/toast/index';
import $confirm from '@/base/confirm/index';
import loading from '@/base/loading/index';
import $helpInfo from '@/base/helpInfo/index';
import $picker from '@/base/picker/index';
import Axios from '@/common/js/axios';

import App from '@/App';
import store from '@/store';
import router from '@/router';

import Calendar from 'vue-mobile-calendar';

// fastclick.attach(document.body);
Vue.config.productionTip = false;
Vue.use(loading);
Vue.use(Calendar);

// base component
Vue.prototype.$alert = $alert;
Vue.prototype.$toast = $toast;
Vue.prototype.$confirm = $confirm;
Vue.prototype.$helpInfo = $helpInfo;
Vue.prototype.$http = Axios;
Vue.prototype.$picker = $picker;
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App),
});
